export default {
  OfficerTransaction: {
    entity: { name: 'Transaction', prefix: `officer` },
    list: {
      disabled_actions: ['edit', 'lines', 'delete', 'new'],
      query: {
        '@filter': `entity.getType() == 'collect'`,
        '@order': 'entity.id|DESC'
      },
      list_filter: {
        beforeCreatedTime: {
          expression: 'entity.getCreatedTime() >= datetime.get(":value  00:00:00")',
          label: '开始时间',
          type: 'date'
        },
        afterCreatedTime: {
          expression: 'entity.getCreatedTime() < datetime.get(":value 23:59:59")',
          label: '结束时间',
          type: 'date'
        }
      },
      list_display: [
        'createdTime',
        'from',
        'to',
        'amount',
        'comment',
        'status'
      ]
    },
    form: {
      fields: [
      ]
    }
  }
}

